<%@ page import="java.io.File" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/6/17 0017
  Time: 10:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    //获取图片路径
    String path = application.getRealPath("/tuji");
    File[] files= new File(path).listFiles();
    for(File file:files){
        %>
<div><%=file.getName()%><img src="<%=application.getContextPath()%>/tuji<%=file.getName()%>" width="100px" height="100px"><a href="doupload.jsp?f="<%=file.getName()%>>下载</a></div>
<%
    }

%>
</body>
</html>
